package ooday04;

import ooday05.Season;

public class StaticDemo {
    public static void main(String[] args) {
        ooday05.Season s = ooday05.Season.AUTUMN;
        System.out.println(s.getSeasonDesc());
        ooday05.Season[] seasons = Season.values();
        for(int i=0;i<seasons.length;i++){
            System.out.println(seasons[i]);
            System.out.println(seasons[i].getSeasonName());
            System.out.println(seasons[i].getSeasonDesc());
        }
        Season S= Season.SPRING;
        switch(S){
            case SPRING:
                System.out.println("天气"+ S.getSeasonDesc()+"适合钓鱼");
                break;
            case SUMMER:
                System.out.println("天气"+ S.getSeasonDesc()+"适合划澡");
                break;
            case AUTUMN:
                System.out.println("天气"+ S.getSeasonDesc()+"也适合钓鱼");
                break;
            case WINTER:
                System.out.println("天气"+ S.getSeasonDesc()+"更适合划澡");
                break;

        }
    }
}










